{extend name="ashippingguide/Public/base" /}
{block name="container"}
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">导购员工资--查询(单位：元)1</h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline" id="form1" method="post">
        <table class="row-margin-top tab-content table-bordered table" border="1">
            <tr>
                <td class="text-right" style="min-width: 120px;width: 120px">月份</td>
                <td><input type="text" class="form-control" id="month" name="a.ny" value="<?php if(isset($where['a_ny'])) echo $where['a_ny']; ?>"></td>
                <td class="text-right" style="min-width: 120px;width: 120px">分区</td>
                <td><input type="text" class="form-control" name="p.title" value="<?php if(isset($where['p_title'])) echo $where['p_title']; ?>"></td>
                <td class="text-right" style="min-width: 120px;width: 120px">省份</td>
                <td><input type="text" class="form-control" name="n.title" value="<?php if(isset($where['n_title'])) echo $where['n_title']; ?>"></td>
            </tr>
            <tr>
                <td class="text-right">城市：</td>
                <td><input type="text" class="form-control" name="o.title" value="<?php if(isset($where['o_title'])) echo $where['o_title']; ?>"></td>
                <td class="text-right">经销商编号：</td>
                <td><input type="text" class="form-control" name="d.title" value="<?php if(isset($where['d_title'])) echo $where['d_title']; ?>"></td>
                <td class="text-right">经销商名称：</td>
                <td><input type="text" class="form-control" name="d.sn" value="<?php if(isset($where['d_sn'])) echo $where['d_sn']; ?>"></td>
            </tr>
            <tr>
                <td class="text-right">系统名称：</td>
                <td><input type="text" class="form-control" name="e.title" value="<?php if(isset($where['e_title'])) echo $where['e_title']; ?>"></td>
                <td class="text-right">网点名称：</td>
                <td><input type="text" class="form-control" name="c.title" value="<?php if(isset($where['c_title'])) echo $where['c_title']; ?>"></td>
                <td class="text-right">网点编号：</td>
                <td><input type="text" class="form-control" name="c.sn" value="<?php if(isset($where['c_sn'])) echo $where['c_sn']; ?>"></td>
            </tr>
            <tr>
                <td class="text-right">导购员姓名：</td>
                <td><input type="text" class="form-control" name="a.name" value="<?php if(isset($where['a_name'])) echo $where['a_name']; ?>"></td>
                <td colspan="4">
                    <button class="btn-sm btn-info btn" type="submit">查询</button><span class="lr_5"></span><button class="btn-sm btn-info btn" type="reset" id="reset">清空查询条件</button><span class="lr_5"></span>
                </td>
            </tr>
        </table>
    <table class="table table-striped table-bordered table-hover text-center">
        <tr class="info">
            <td class="info" rowspan="2">序号</td>
            <td rowspan="2">月份</td>
            <td colspan="3">导购员</td>
            <td rowspan="2">所在分区</td>
            <td rowspan="2">所在省份</td>
            <td rowspan="2">所在城市</td>
            <td rowspan="2">所属经销商编号</td>
            <td rowspan="2">所属经销商名称</td>
            <td rowspan="2">所属系统</td>
            <td rowspan="2">所在网点名称</td>
            <td rowspan="2">所在网点编号</td>
            <td colspan="2">本月销售</td>
            <td rowspan="2">基本工资</td>
            <td colspan="2">提成</td>
            <td colspan="3">补贴</td>
            <td rowspan="2">奖金</td>
            <td rowspan="2">加班工资</td>
            <td rowspan="2">应发工资</td>
            <td rowspan="2">负激励</td>
            <td rowspan="2">考勤扣款</td>
            <td rowspan="2">所得税</td>
            <td rowspan="2">社保</td>
            <td rowspan="2">减项合计</td>
            <td rowspan="2">其他一</td>
            <td rowspan="2">其他二</td>
            <td rowspan="2">其他三</td>
            <td rowspan="2">其他四</td>
            <td rowspan="2">其他五</td>
            <td rowspan="2">其他合计</td>
            <td rowspan="2">实发工资</td>
            <td rowspan="2">备注</td>
        </tr>
        <tr class="info">
            <td>姓名</td>
            <td>电话</td>
            <td>身份证号</td>
            <td>金额(元)</td>
            <td>数量(支)</td>
            <td>主品项</td>
            <td>非主品项</td>
            <td>车费</td>
            <td>通讯费</td>
            <td>其他补贴</td>
        </tr>
        {volist name="data" id="list"}
        <tr class="count">
            <td>{$i}</td>
            <td>{$list.ny}</td>
            <td>{$list.name}</td>
            <td>{$list.phone}</td>
            <td>{$list.IDNo}</td>
            <td>{$list.yq}</td>
            <td>{$list.ys}</td>
            <td>{$list.yshi}</td>
            <td>{$list.jxs_no}</td>
            <td>{$list.jxs}</td>
            <td>{$list.xt}</td>
            <td>{$list.wd}</td>
            <td>{$list.wd_no}</td>
            <td class="text-right ObjectNum">{$list.money}</td>
            <td class="text-right ObjectNum">{$list.num}</td>
            <td class="text-right ObjectNum">{$list.basePay}</td>
            <td class="text-right ObjectNum">{$list.mainItem}</td>
            <td class="text-right ObjectNum">{$list.nonMainItem}</td>
            <td class="text-right ObjectNum">{$list.fare}</td>
            <td class="text-right ObjectNum">{$list.fee}</td>
            <td class="text-right ObjectNum">{$list.otherSub}</td>
            <td class="text-right ObjectNum">{$list.bonus}</td>
            <td class="text-right ObjectNum">{$list.overtimePay}</td>
            <td class="text-right ObjectNum">{$list.shouldWages}</td>
            <td class="text-right ObjectNum">{$list.fuJiLi}</td>
            <td class="text-right ObjectNum">{$list.kaoQinKouKuan}</td>
            <td class="text-right ObjectNum">{$list.incomeTax}</td>
            <td class="text-right ObjectNum">{$list.sheBao}</td>
            <td class="text-right ObjectNum">{$list.jianXiangCount}</td>
            <td class="text-right ObjectNum">{$list.other1}</td>
            <td class="text-right ObjectNum">{$list.other2}</td>
            <td class="text-right ObjectNum">{$list.other3}</td>
            <td class="text-right ObjectNum">{$list.other4}</td>
            <td class="text-right ObjectNum">{$list.other5}</td>
            <td class="text-right ObjectNum">{$list.otherCount}</td>
            <td class="text-right ObjectNum">{$list.payroll}</td>
            <td align="center">{$list.des}</td>
        </tr>
        {/volist}
        <tfoot>
        <tr class="trTotal text-right">
            <td colspan="13">合计&nbsp;</td>
            <td class="text-right ObjectNum">{$coun1.money}</td>
            <td class="text-right ObjectNum">{$coun1.num}</td>
            <td class="text-right ObjectNum">{$coun1.basePay}</td>
            <td class="text-right ObjectNum">{$coun1.mainItem}</td>
            <td class="text-right ObjectNum">{$coun1.nonMainItem}</td>
            <td class="text-right ObjectNum">{$coun1.fare}</td>
            <td class="text-right ObjectNum">{$coun1.fee}</td>
            <td class="text-right ObjectNum">{$coun1.otherSub}</td>
            <td class="text-right ObjectNum">{$coun1.bonus}</td>
            <td class="text-right ObjectNum">{$coun1.overtimePay}</td>
            <td class="text-right ObjectNum">{$coun1.shouldWages}</td>
            <td class="text-right ObjectNum">{$coun1.fuJiLi}</td>
            <td class="text-right ObjectNum">{$coun1.kaoQinKouKuan}</td>
            <td class="text-right ObjectNum">{$coun1.incomeTax}</td>
            <td class="text-right ObjectNum">{$coun1.sheBao}</td>
            <td class="text-right ObjectNum">{$coun1.jianXiangCount}</td>
            <td class="text-right ObjectNum">{$coun1.other1}</td>
            <td class="text-right ObjectNum">{$coun1.other2}</td>
            <td class="text-right ObjectNum">{$coun1.other3}</td>
            <td class="text-right ObjectNum">{$coun1.other4}</td>
            <td class="text-right ObjectNum">{$coun1.other5}</td>
            <td class="text-right ObjectNum">{$coun1.otherCount}</td>
            <td class="text-right ObjectNum">{$coun1.payroll}</td>
            <td align="center">&nbsp;</td>
        </tr>
        </tfoot>
    </table>
    <h5 class="text-center" style="font-size: 13px;font-weight: 500">
        总共有{$count}条记录，第{$page}/{$maxpage}页,当前页<input id="page" name="pages" type="text" style="width: 40px" value="1"/>
        <button id="gopage">Go</button>&nbsp;&nbsp;<button
            id="fistpage" onclick="$('#form1').find('input').val('');">首页</button>&nbsp;&nbsp;
        每页显示
        <select id="pagesize" name="limts">
            <option value='10' selected>10条</option>
            <option value='15'>15条</option>
            <option value='20'>20条</option>
        </select>
        <script>
            $('#pagesize').val("{$limit}");
        </script>
    </h5>
    </form>
    <!-- <h3 class="text-center"><img src="__STATIC__/layout/img/zwsj.png"></h3> -->
</div>
<script>
    laydate.render({
        elem:"#month",
        type:"month"
    });
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
    $(document).ready(function () {
            var $ObjectNum =$(".ObjectNum");
            toNum($ObjectNum);
        $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })


</script>
{/block}